package com.gitee.fsmxm.thinking.in.spring.bean.factory;

import com.gitee.fsmxm.thinking.in.spring.ioc.overview.domain.User;
import org.springframework.beans.factory.FactoryBean;

public class UserFactoryBean implements FactoryBean<User> {
    public User getObject() throws Exception {
        User user = new User();
        user.setId(1L);
        user.setName("小马哥");
        return user;
    }

    public Class<?> getObjectType() {
        return User.class;
    }
}
